package com.example.bird;

/**
 * @Auther: yuanjianpeng
 * @Date: 2019/3/19 23:16
 * @Description:
 */
public class Bird {

    private String name;

    public Bird(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void sing(){
        System.out.println("我可以鸣叫");
    }

    public void fly(){
        System.out.println("我可以飞");
    }

}
